<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.0/dist/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
    <style>
        .form-control{
            width: 100px;
            float: left;
            margin-right: 20px;
        }
    </style>
</head>
<body>
<div class="container"><br>
    <form>
        <div class="form-group">
            <input type="text" class="form-control" placeholder="输入搜索的书名" name="title">
        </div>
        <div class="form-group">
            <input type="text" class="form-control" placeholder="输入搜索的作者" name="author">
        </div>
        <div class="form-group">
            <input type="text" class="form-control" placeholder="输入搜索的类别" name="classify">
        </div>
        <button type="submit" class="btn btn-primary">搜索</button>
    </form>
    <br>
    <table class="table table-striped table-dark">
        <thead>
        <tr>
            <th scope="col">编号</th>
            <th scope="col">类别</th>
            <th scope="col">书名</th>
            <th scope="col">最新章节</th>
            <th scope="col">字数</th>
            <th scope="col">作者</th>
            <th scope="col">更新时间</th>
            <th scope="col">操作</th>
        </tr>
        </thead>
        <tbody>
        {foreach $data as $value}
        <tr>
            <th scope="row">{$value['id']}</th>
            <td>{$value['classify']}</td>
            <td>{$value['title']}</td>
            <td>{$value['newest']}</td>
            <td>{$value['words']}</td>
            <td>{$value['author']}</td>
            <td>{$value['uptime']}</td>
            <td>
                <a href="del?id={$value['id']}">删除</a>
                <a href="up?id={$value['id']}">修改</a>
            </td>
        </tr>
        {/foreach}
        </tbody>
    </table>
    {$data|raw}
</div>
</body>
</html>